const { http } = uni.$u
// 获取菜单
export const fetchMenu = (params, config = {}) => http.post('/ebapi/public_api/index', params, config)
//获取百家姓列表
export const getBloddInfoList = (params, config = {}) => http.get('/v1/app-api/bloodInfo/getBloddInfoList', params, config)
export const getBloddInfoListTwo = (params, config = {}) => http.get('/v1/app-api/bloodInfo/getBloddInfoListTwo', params, config)
export const getBloddInfoListThree = (params, config = {}) => http.get('/v1/app-api/bloodInfo/getBloddInfoListThree', params, config)


//获取性状图片列表
export const getBloodImageList = (params, config = {}) => http.get('/v1/app-api/bloodImage/getBloodImageList', params, config)
//获取文章列表
export const getArticleList = (params, config = {}) => http.get('/v1/app-api/article/getArticleList', params, config)
//获取文章详情
export const getArticleById = (params, config = {}) => http.get('/v1/app-api/article/getArticleById', params, config)
//保存病例
export const saveBingli = (params, config = {}) => http.post('/v1/app-api/bingli/saveBingli', params, config)
//根据id获取病例
export const getBloddInfoNopayById = (params, config = {}) => http.get('/v1/app-api/bingli/getBloddInfoNopayById', params, config)
export const getBloddInfoById = (params, config = {}) => http.get('/v1/app-api/bingli/getBloddInfoById', params, config)
export const payNotify = (params, config = {}) => http.get('/v1/app-api/wxPayV3/payNotify', params, config)
export const loginWeixin = (params, config = {}) => http.post('/v1/app-api/login/wx', params, config)
//获取验证码
export const getCode = (params, config = {}) => http.post('/v1/app-api/login/getCode', params, config)
//登录
export const loginCode = (params, config = {}) => http.post('/v1/app-api/login', params, config)
//检测token的有效性
export const checkopenIdtoken = (params, config = {}) => http.get('/v1/app-api/login/checkopenIdtoken', params, config)
//获取用户信息
export const getUserInfo = (params, config = {}) => http.get('/v1/app-api/user/getUserInfo', params, config)

//保存头像
export const saveWeixinNickName = (params, config = {}) => http.post('/v1/app-api/user/saveWeixinNickName', params, config)
//获取订单心理
export const getbingliInfoList = (params, config = {}) => http.get('/v1/app-api/bingli/getbingliInfoList', params, config)


